package com.workerhelping.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.workerhelping.enums.RecordStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkerPortalVO implements Serializable {

    // 档案id
    private Integer id;
    private String name;
    private String gender;
    private String nation;
    private String IDNumber;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDate;
    private Integer status;
    private String statusString;

    public String getStatusString() {
        return RecordStatusEnum.getStatusName(this.status);
    }

}
